import json
from config import BASE_DIR


def read_json(filename):
    with open(BASE_DIR + "/data/" + filename, "r", encoding="utf8") as f:
        json_data = json.load(f)
        list_data = []
        for dect_1 in json_data:
            list_data.append(tuple(dect_1.values()))
    return list_data


if __name__ == '__main__':
    ret = read_json("add_emp.json")
    print(ret)
